package com.cgsrp.cgsrp_baby.dao;

import com.cgsrp.cgsrp_baby.domain.Baby;
import com.cgsrp.cgsrp_baby.domain.ChildParent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChildParentMapper {
    int deleteByPrimaryKey(@Param("childId") Integer childId, @Param("parentId") Integer parentId);

    int insert(ChildParent record);

    int insertSelective(ChildParent record);

    ChildParent selectByPrimaryKey(@Param("childId") Integer childId, @Param("parentId") Integer parentId);

    int updateByPrimaryKeySelective(ChildParent record);

    int updateByPrimaryKey(ChildParent record);

    List<ChildParent> list(int babyId);
}
